<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关于我们 - 蓝猫</title>
    <!-- 引入外部资源 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#007AFF', // 大疆蓝
                        secondary: '#00C2FF',
                        dark: '#111827',
                        'dark-light': '#1F2937',
                        'gray-custom': '#6B7280'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .btn-primary {
                @apply bg-primary text-white px-4 py-2 rounded-md hover:bg-primary/90 transition-all hover:shadow-md;
            }
            .btn-secondary {
                @apply bg-secondary text-white px-4 py-2 rounded-md hover:bg-secondary/90 transition-all hover:shadow-md;
            }
            .category-active {
                @apply bg-primary/10 text-primary font-medium;
            }
            .slide-in {
                animation: slideIn 0.6s ease-out forwards;
            }
            @keyframes slideIn {
                from { opacity: 0; transform: translateY(20px); }
                to { opacity: 1; transform: translateY(0); }
            }
        }
    </style>
</head>

<body class="bg-white text-dark font-sans">
    <!-- 导航栏 -->
    <header id="navbar" class="fixed top-0 left-0 right-0 bg-white shadow-sm z-50 transition-all duration-300">
        <div class="container mx-auto px-4">
            <div class="flex items-center justify-between h-20">
                <!-- Logo -->
                <a href="index.html" class="flex items-center space-x-2">
                    <span class="logo text-2xl font-bold text-blue-600">蓝猫</span>
                </a>

                <!-- 导航链接 - 桌面版 -->
                <nav class="hidden md:flex items-center space-x-8">
                    <a href="index.html" class="font-medium hover:text-primary transition-colors">首页</a>
                    <a href="#" class="font-medium hover:text-primary transition-colors">热卖商品</a>
                    <a id="adminCreateProduct" href="add-product.html"
                        class="font-medium hover:text-primary transition-colors hidden">创建商品</a>
                    <a href="about-ours.html" class="font-medium hover:text-primary transition-colors">关于我们</a>
                </nav>

                <!-- 搜索框 - 桌面版 -->
                <div class="hidden md:flex items-center relative flex-1 max-w-md mx-8 group">
                    <input type="text" id="searchInput" placeholder="搜索商品..."
                        class="w-full py-2 px-4 pr-10 rounded-full border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-all group-hover:border-primary/30">
                    <button id="searchBtn" class="absolute right-3 text-gray-400 hover:text-primary transition-colors">
                        <i class="fa fa-search"></i>
                    </button>
                </div>

                <!-- 用户功能区 -->
                <div class="flex items-center space-x-4">
                    <button id="cartBtn" class="relative p-2 hover:text-primary transition-colors">
                        <i class="fa fa-shopping-cart text-xl"></i>
                        <span id="cartCount"
                            class="absolute -top-1 -right-1 bg-secondary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center transition-all">0</span>
                    </button>

                    <div id="auth-links" class="flex items-center space-x-4">
                        <a href="login.html"
                            class="relative text-sm text-gray-500 hover:text-primary transition-colors">登陆</a>
                        <a href="register.html"
                            class="relative text-sm text-gray-500 hover:text-primary transition-colors">注册</a>
                    </div>

                    <div id="user-info" class="hidden items-center space-x-2">
                        <span class="relative text-sm text-gray-500 hover:text-primary transition-colors"></span>
                        <button id="logoutBtn"
                            class="relative text-sm text-gray-500 hover:text-primary transition-colors">退出</button>
                    </div>

                    <!-- 移动端菜单按钮 -->
                    <button id="mobileMenuBtn" class="md:hidden p-2 hover:text-primary transition-colors">
                        <i class="fa fa-bars text-xl"></i>
                    </button>
                </div>
            </div>

            <!-- 移动端搜索框 -->
            <div class="md:hidden pb-4">
                <div class="relative">
                    <input type="text" id="mobileSearchInput" placeholder="搜索商品..."
                        class="w-full py-2 px-4 pr-10 rounded-full border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-all">
                    <button id="mobileSearchBtn"
                        class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-primary transition-colors">
                        <i class="fa fa-search"></i>
                    </button>
                </div>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="pt-16">
        <!-- 公司简介 -->
        <section class="py-16 bg-white">
            <div class="container mx-auto px-4">
                <div class="flex flex-col md:flex-row gap-12 items-center">
                    <div class="md:w-1/2 fade-in">
                        <h2 class="text-3xl md:text-4xl font-bold mb-6">公司简介</h2>
                        <p class="text-gray-600 mb-4 leading-relaxed">
                            蓝猫科技成立于2015年，是一家专注于智能机器人与无人机技术研发的高科技企业。我们始终坚持"科技创新，服务社会"的理念，致力于为用户提供最前沿的智能产品解决方案。
                        </p>
                        <p class="text-gray-600 mb-4 leading-relaxed">
                            经过多年发展，公司已拥有一支由行业专家组成的研发团队，在人工智能、自主导航、智能控制等领域积累了多项核心技术专利。我们的产品广泛应用于安防巡检、环境监测、灾后救援等多个领域。
                        </p>
                        <p class="text-gray-600 leading-relaxed">
                            未来，蓝猫科技将继续深耕智能装备领域，不断创新突破，为推动行业发展和社会进步贡献力量。
                        </p>
                    </div>
                    <div class="md:w-1/2 fade-in" style="animation-delay: 0.3s">
                        <img src="https://picsum.photos/600/400?random=10" alt="蓝猫科技办公环境"
                            class="w-full h-auto rounded-lg shadow-lg">
                    </div>
                </div>
            </div>
        </section>

        <!-- 核心价值观 -->
        <section class="py-16 bg-light">
            <div class="container mx-auto px-4">
                <div class="text-center mb-12 fade-in">
                    <h2 class="text-3xl md:text-4xl font-bold mb-4">核心价值观</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">我们的理念指导着每一个决策和行动</p>
                </div>

                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                    <div class="bg-white p-6 rounded-lg shadow-sm card-hover fade-in" style="animation-delay: 0.1s">
                        <div
                            class="w-14 h-14 bg-primary/10 text-primary rounded-full flex items-center justify-center mb-4">
                            <i class="fa fa-lightbulb-o text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3">创新至上</h3>
                        <p class="text-gray-600">不断突破技术边界，用创新思维解决实际问题</p>
                    </div>

                    <div class="bg-white p-6 rounded-lg shadow-sm card-hover fade-in" style="animation-delay: 0.2s">
                        <div
                            class="w-14 h-14 bg-primary/10 text-primary rounded-full flex items-center justify-center mb-4">
                            <i class="fa fa-users text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3">用户第一</h3>
                        <p class="text-gray-600">深入理解用户需求，提供超出期望的产品与服务</p>
                    </div>

                    <div class="bg-white p-6 rounded-lg shadow-sm card-hover fade-in" style="animation-delay: 0.3s">
                        <div
                            class="w-14 h-14 bg-primary/10 text-primary rounded-full flex items-center justify-center mb-4">
                            <i class="fa fa-handshake-o text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3">诚信正直</h3>
                        <p class="text-gray-600">坚持诚实信用原则，与合作伙伴共同成长</p>
                    </div>

                    <div class="bg-white p-6 rounded-lg shadow-sm card-hover fade-in" style="animation-delay: 0.4s">
                        <div
                            class="w-14 h-14 bg-primary/10 text-primary rounded-full flex items-center justify-center mb-4">
                            <i class="fa fa-rocket text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3">追求卓越</h3>
                        <p class="text-gray-600">对产品和服务精益求精，永不止步追求更高品质</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- 团队展示 -->
        <section class="py-16 bg-white">
            <div class="container mx-auto px-4">
                <div class="text-center mb-12 fade-in">
                    <h2 class="text-3xl md:text-4xl font-bold mb-4">核心团队</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">由行业精英组成的专业团队，共同推动公司发展</p>
                </div>

                <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
                    <div class="text-center card-hover fade-in" style="animation-delay: 0.1s">
                        <div
                            class="relative w-40 h-40 mx-auto mb-4 rounded-full overflow-hidden border-4 border-primary/10">
                            <img src="https://picsum.photos/300/300?random=20" alt="张明 - 创始人兼CEO"
                                class="w-full h-full object-cover">
                        </div>
                        <h3 class="text-xl font-bold mb-1">张明</h3>
                        <p class="text-primary mb-2">创始人兼CEO</p>
                        <p class="text-gray-600 text-sm">前华为高级工程师，拥有15年机器人领域经验</p>
                    </div>

                    <div class="text-center card-hover fade-in" style="animation-delay: 0.2s">
                        <div
                            class="relative w-40 h-40 mx-auto mb-4 rounded-full overflow-hidden border-4 border-primary/10">
                            <img src="https://picsum.photos/300/300?random=21" alt="李华 - 首席技术官"
                                class="w-full h-full object-cover">
                        </div>
                        <h3 class="text-xl font-bold mb-1">李华</h3>
                        <p class="text-primary mb-2">首席技术官</p>
                        <p class="text-gray-600 text-sm">清华大学博士，专注于人工智能与机器视觉研究</p>
                    </div>

                    <div class="text-center card-hover fade-in" style="animation-delay: 0.3s">
                        <div
                            class="relative w-40 h-40 mx-auto mb-4 rounded-full overflow-hidden border-4 border-primary/10">
                            <img src="https://picsum.photos/300/300?random=22" alt="王芳 - 产品总监"
                                class="w-full h-full object-cover">
                        </div>
                        <h3 class="text-xl font-bold mb-1">王芳</h3>
                        <p class="text-primary mb-2">产品总监</p>
                        <p class="text-gray-600 text-sm">曾任职于大疆创新，拥有丰富的无人机产品经验</p>
                    </div>

                    <div class="text-center card-hover fade-in" style="animation-delay: 0.4s">
                        <div
                            class="relative w-40 h-40 mx-auto mb-4 rounded-full overflow-hidden border-4 border-primary/10">
                            <img src="https://picsum.photos/300/300?random=23" alt="赵强 - 市场总监"
                                class="w-full h-full object-cover">
                        </div>
                        <h3 class="text-xl font-bold mb-1">赵强</h3>
                        <p class="text-primary mb-2">市场总监</p>
                        <p class="text-gray-600 text-sm">10年科技产品营销经验，擅长品牌战略规划</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- 发展历程 -->
        <section class="py-16 bg-light">
            <div class="container mx-auto px-4">
                <div class="text-center mb-12 fade-in">
                    <h2 class="text-3xl md:text-4xl font-bold mb-4">发展历程</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">蓝猫科技的成长足迹</p>
                </div>

                <div class="relative max-w-3xl mx-auto">
                    <!-- 时间线中轴线 -->
                    <div class="absolute left-1/2 transform -translate-x-1/2 h-full w-1 bg-primary/20"></div>

                    <!-- 时间点1 -->
                    <div class="relative z-10 mb-12 fade-in" style="animation-delay: 0.1s">
                        <div class="flex flex-col md:flex-row items-center">
                            <div class="md:w-1/2 md:pr-12 md:text-right mb-6 md:mb-0 md:text-right">
                                <h3 class="text-xl font-bold mb-1">公司成立</h3>
                                <p class="text-gray-600">蓝猫科技在北京正式成立，初期团队仅5人</p>
                            </div>
                            <div
                                class="absolute left-1/2 transform -translate-x-1/2 w-6 h-6 rounded-full bg-primary border-4 border-white">
                            </div>
                            <div class="md:w-1/2 md:pl-12">
                                <span
                                    class="inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium">2015年</span>
                            </div>
                        </div>
                    </div>

                    <!-- 时间点2 -->
                    <div class="relative z-10 mb-12 fade-in" style="animation-delay: 0.2s">
                        <div class="flex flex-col md:flex-row items-center">
                            <div class="md:w-1/2 md:pr-12 md:text-right order-1 md:order-1 mb-6 md:mb-0">
                                <span
                                    class="inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium">2017年</span>
                            </div>
                            <div
                                class="absolute left-1/2 transform -translate-x-1/2 w-6 h-6 rounded-full bg-primary border-4 border-white order-0 md:order-0">
                            </div>
                            <div class="md:w-1/2 md:pl-12 order-2 md:order-2">
                                <h3 class="text-xl font-bold mb-1">首款产品发布</h3>
                                <p class="text-gray-600">推出第一代蓝猫智能巡检无人机，获得市场高度认可</p>
                            </div>
                        </div>
                    </div>

                    <!-- 时间点3 -->
                    <div class="relative z-10 mb-12 fade-in" style="animation-delay: 0.3s">
                        <div class="flex flex-col md:flex-row items-center">
                            <div class="md:w-1/2 md:pr-12 md:text-right mb-6 md:mb-0">
                                <h3 class="text-xl font-bold mb-1">A轮融资</h3>
                                <p class="text-gray-600">完成5000万元A轮融资，公司规模扩大至50人</p>
                            </div>
                            <div
                                class="absolute left-1/2 transform -translate-x-1/2 w-6 h-6 rounded-full bg-primary border-4 border-white">
                            </div>
                            <div class="md:w-1/2 md:pl-12">
                                <span
                                    class="inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium">2019年</span>
                            </div>
                        </div>
                    </div>

                    <!-- 时间点4 -->
                    <div class="relative z-10 mb-12 fade-in" style="animation-delay: 0.4s">
                        <div class="flex flex-col md:flex-row items-center">
                            <div class="md:w-1/2 md:pr-12 md:text-right order-1 md:order-1 mb-6 md:mb-0">
                                <span
                                    class="inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium">2021年</span>
                            </div>
                            <div
                                class="absolute left-1/2 transform -translate-x-1/2 w-6 h-6 rounded-full bg-primary border-4 border-white order-0 md:order-0">
                            </div>
                            <div class="md:w-1/2 md:pl-12 order-2 md:order-2">
                                <h3 class="text-xl font-bold mb-1">产品线扩展</h3>
                                <p class="text-gray-600">推出蓝猫探索系统系列产品，覆盖多个行业应用场景</p>
                            </div>
                        </div>
                    </div>

                    <!-- 时间点5 -->
                    <div class="relative z-10 fade-in" style="animation-delay: 0.5s">
                        <div class="flex flex-col md:flex-row items-center">
                            <div class="md:w-1/2 md:pr-12 md:text-right mb-6 md:mb-0">
                                <h3 class="text-xl font-bold mb-1">战略升级</h3>
                                <p class="text-gray-600">启动全球化战略，产品出口至10多个国家和地区</p>
                            </div>
                            <div
                                class="absolute left-1/2 transform -translate-x-1/2 w-6 h-6 rounded-full bg-primary border-4 border-white">
                            </div>
                            <div class="md:w-1/2 md:pl-12">
                                <span
                                    class="inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium">2023年</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="bg-dark text-white pt-12 pb-8 mt-8 lg:mt-16">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <span class="font-bold text-xl">蓝猫</span>
                    </div>
                    <p class="text-gray-400 mb-4">
                        提供优质商品和极简购物体验
                    </p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                            <i class="fa fa-twitter"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                            <i class="fa fa-instagram"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                            <i class="fa fa-weixin"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="font-bold text-lg mb-4">快速链接</h3>
                    <ul class="space-y-2">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门商品</a></li>
                        <li><a href="product.html" class="text-gray-400 hover:text-white transition-colors">产品介绍</a>
                        </li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">关于我们</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="font-bold text-lg mb-4">客户服务</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">购物指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">配送信息</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="font-bold text-lg mb-4">联系我们</h3>
                    <ul class="space-y-2">
                        <li class="flex items-start">
                            <i class="fa fa-map-marker text-primary mt-1 mr-3"></i>
                            <span class="text-gray-400">北京市朝阳区某某街道123号</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone text-primary mr-3"></i>
                            <span class="text-gray-400">400-123-4567</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope text-primary mr-3"></i>
                            <span class="text-gray-400">service@example.com</span>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-800 pt-6 text-center text-gray-500 text-sm">
                <p>&copy; 2023 蓝猫科技. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <!-- 遮罩层 -->
    <div id="overlay" class="fixed inset-0 bg-black/50 opacity-0 transition-opacity duration-300 z-40 hidden"></div>

    <!-- 通知提示 -->
    <div id="toast"
        class="fixed bottom-6 right-6 bg-dark text-white px-4 py-3 rounded-lg shadow-lg transform translate-y-20 opacity-0 transition-all duration-300 z-50 flex items-center">
        <i class="fa fa-check-circle text-secondary mr-2"></i>
        <span id="toastMessage"></span>
    </div>
    <script src="app.js"></script>
    <script>
        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', () => {
            // 复用app.js的事件监听（购物车、登录登出等）
            setupEventListeners();
            // 复用app.js的认证检查和购物车加载
            checkAuth().then(() => loadCart());
            // 页面特有：滚动动画初始化
            setupScrollAnimation();
        });

        // 页面特有：滚动动画设置
        function setupScrollAnimation() {
            const fadeElements = document.querySelectorAll('.fade-in');
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = 1;
                        entry.target.style.transform = 'translateY(0)';
                    }
                });
            }, { threshold: 0.1 });
            fadeElements.forEach(element => observer.observe(element));
        }

        // 页面特有：联系表单提交处理
        const contactForm = document.querySelector('form');
        if (contactForm) {
            contactForm.addEventListener('submit', (e) => {
                e.preventDefault();
                const name = document.getElementById('name').value;
                if (name) {
                    showToast('消息发送成功，我们会尽快回复您！'); // 复用app.js的showToast
                    contactForm.reset();
                } else {
                    showToast('请输入您的姓名', 'warning'); // 复用app.js的showToast
                }
            });
        }

        // 页面特有：滚动时导航栏效果（若app.js已有则删除，此处假设app.js无）
        window.addEventListener('scroll', () => {
            const navbar = document.getElementById('navbar');
            if (window.scrollY > 50) {
                navbar.classList.add('shadow-md');
                navbar.classList.remove('shadow-sm');
            } else {
                navbar.classList.remove('shadow-md');
                navbar.classList.add('shadow-sm');
            }
        });
    </script>
</body>

</html>